FROM docker.elastic.co/elasticsearch/elasticsearch:7.9.0

RUN echo "$(sed '/nameserver/i\nameserver 114.114.114.114' /etc/resolv.conf)" > /etc/resolv.conf

# 安装中文分词器


RUN curl -O https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.9.0/elasticsearch-analysis-ik-7.9.0.zip
RUN ./bin/elasticsearch-plugin install  ./elasticsearch-analysis-ik-7.9.0.zip